package TestUnit;

public class Algoritmos {
	
	public double suma(double a,double b){
		return a + b;
	}
	
	public double resta (double a, double b){
		return a - b;
	}
	
	public double multiplicacion(double a, double b){
		return a * b;
	}
	
	public double division(double divisor, double dividendo){
		if (dividendo == 0) {
			return 0;
		}
		else {
			return divisor / dividendo;
		}
	}
}
